<?php
$menus = array();

$customers = $this->requestAction('supplier_customer_inventories/list_customers');
foreach($customers as $c) {
    $menus[] = array(
        'title' => $c['Customer']['short_name'],
        'controller' => 'supplier_customer_inventories',
        'action' => 'display/' . $c['Customer']['id'],
        'checkSelect' => 'action'   // check การ select แทน จาก action ที่ใช้งาน
    );
}

$params = array('menus' => $menus, 'parent' => 'tabMenu');
echo $this->element('tabMenus', $params);
?>